ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX Namespace / DXUtil Class / SizeOf Method / SizeOf<T>(T[]) Method
A struct.
The array of struct to evaluate.

In This Topic
    SizeOf<T>(T[]) Method
    In This Topic
    Return the sizeof an array of struct. Equivalent to sizeof operator but works on generics too.
    Syntax
    'Declaration
     
    Public Overloads Shared Function SizeOf(Of T As {New, Struct})( _
       ByVal array() As T _
    ) As Integer
    public static int SizeOf<T>( 
       T[] array
    )
    where T: new(), struct

    Parameters

    array
    The array of struct to evaluate.

    Type Parameters

    T
    A struct.

    Return Value

    Size in bytes of this array of struct.
    See Also